package com.woniuxy.commons.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.lang.String;

/**
 * @program: bzeducation
 * @author: Xingqilin
 * @create: 2020-07-17 11:35
 * @description:查询条件实体类
 */
@Accessors(chain = true)
public class QueryConditions {
    //    问题
    private String topic;
    //    出题时间
    private String birth;
    //    出题人
    private String founder;
    //    类别ID
    private long type;
    //    知识点ID
    private long knowledge;
    //    分数
    private double point;
    //    学期
    private long term;

    public String getTopic() {
        return topic + "%";
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getBirth() {
        return birth + "%";
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getFounder() {
        return founder + "%";
    }

    public void setFounder(String founder) {
        this.founder = founder;
    }

    public long getType() {
        return type;
    }

    public void setType(long type) {
        this.type = type;
    }

    public long getKnowledge() {
        return knowledge;
    }

    public void setKnowledge(long knowledge) {
        this.knowledge = knowledge;
    }

    public double getPoint() {
        return point;
    }

    public void setPoint(double point) {
        this.point = point;
    }

    public long getTerm() {
        return term;
    }

    public void setTerm(long term) {
        this.term = term;
    }

    @Override
    public String toString() {
        return "QueryConditions{" +
                "topic='" + topic + '\'' +
                ", birth=" + birth +
                ", founder='" + founder + '\'' +
                ", type=" + type +
                ", knowledge=" + knowledge +
                ", point=" + point +
                ", term=" + term +
                '}';
    }
}
